package com.zryc.shop.sms.client;

import com.zryc.shop.pms.entity.Product;
import com.zryc.shop.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//对应的商品服务中获取商品信息的接口
@FeignClient("shop-product")
//@Service
public interface IProductServiceClient {
    @GetMapping("/pms/product/updateInfo/{pid}")
    ResponseResult<Product> getInfo(@PathVariable Long pid);
}
